home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / Procedural / AMReminder / Globals.h < prev    next >
Text File  |  1996-03-19  |  1KB  |  57 lines

  1. /* Globals.h */
  2. /* Created 01/01/95 12:01 PM by AppMaker */
  3.  
  4. #ifndef _H_Globals
  5. #define _H_Globals
  6.  
  7. typedef struct {
  8.     /* Standard fields: */
  9.         TEHandle        text;
  10.         ControlHandle    vScroll;
  11.         ControlHandle    hScroll;
  12.         short            fileNum;
  13.         Boolean            dirty;
  14.         StringHandle    filename;
  15.         enum {noWindow, WMainWindow}    windowKind;
  16.         Handle            witlHandle;        /* Window itemlist resource */
  17.         Handle            wictHandle;        /* Window item color table resource */
  18.  
  19.     /* Application-specific fields: */
  20.     /* for MainWindow: */
  21.         ListHandle        RemindersHandle;
  22.         short            RemindersChoice;
  23.         ControlHandle    AddHandle;
  24.         ControlHandle    EditHandle;
  25.         ControlHandle    DeleteHandle;
  26.  
  27.  
  28. } WinInfoRec, *WinInfoPtr;
  29.  
  30. typedef struct {
  31.     Boolean            hasGestalt;            /* has Gestalt manager    */
  32.     Boolean            hasWNE;                /* has WaitNextEvent    */
  33.     Boolean            hasColorQD;            /* has Color QuickDraw    */
  34.     Boolean            hasAppleEvents;        /* has Apple Events        */
  35.     Boolean            hasEditionMgr;        /* has Edition Manager    */
  36. } SysConfigRec;
  37.  
  38. /* Standard vars: */
  39. extern Boolean            quittingTime;
  40. extern EventRecord        curEvent;
  41. extern WindowPtr        curWindow;
  42. extern WinInfoPtr        cur;
  43. extern Boolean            inBackground;
  44. extern SysConfigRec        sysConfig;
  45.  
  46. /* Application-specific vars: */
  47.  
  48. /*----------*/
  49. void    InitGlobals        (void);
  50. void    SetInfo            (WindowPtr        window);
  51. void    SetNewInfo        (WindowPtr        window);
  52. void    DiscardInfo        (WindowPtr        window);
  53.  
  54. #endif    /* _H_Globals */
  55.  
  56. /* Globals */
  57.